import  requests
# 方式一:直接在url里面写参数
response=requests.get(url="http://www.baibu.com?wd=武汉天气")

print(response.status_code)
print(response.text)
# 方法二:使用params参数提交


# url="http://www.baibu.com/s"
# test_data={"wd":"武汉天气"}
# response1=requests.get(url=url,params=test_data)
# print(response.status_code)
# print(response.text)



